package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.cpecc.model.system.User;
@Entity
@Table(name = "DATA_WUZI_XIUGAIJL")
public class XiuGaiJL implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -714032825106438304L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="USER_ID")
	private User user;
	
	@Column
	private Date xiuGaiRQ;
	
	@Column(length=16)
	private String xiuGaiXM;
	
	@Column(length=50)
	private String yuanZhi;
	
	@Column(length=50)
	private String xinZhi;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getXiuGaiRQ() {
		return xiuGaiRQ;
	}

	public void setXiuGaiRQ(Date xiuGaiRQ) {
		this.xiuGaiRQ = xiuGaiRQ;
	}

	public String getXiuGaiXM() {
		return xiuGaiXM;
	}

	public void setXiuGaiXM(String xiuGaiXM) {
		this.xiuGaiXM = xiuGaiXM;
	}

	public String getYuanZhi() {
		return yuanZhi;
	}

	public void setYuanZhi(String yuanZhi) {
		this.yuanZhi = yuanZhi;
	}

	public String getXinZhi() {
		return xinZhi;
	}

	public void setXinZhi(String xinZhi) {
		this.xinZhi = xinZhi;
	}

	public XiuGaiJL(String id, WuZi wuZi, User user, Date xiuGaiRQ,
			String xiuGaiXM, String yuanZhi, String xinZhi) {
		super();
		this.id = id;
		this.wuZi = wuZi;
		this.user = user;
		this.xiuGaiRQ = xiuGaiRQ;
		this.xiuGaiXM = xiuGaiXM;
		this.yuanZhi = yuanZhi;
		this.xinZhi = xinZhi;
	}

	public XiuGaiJL() {
		super();
	}	
}
